import * as URL from '@/constants/api';
import req from '@/utils/request';

// 商品分类
export function getCategory() {
  return req(URL.CATEGORY).then((res) => res.data.result);
}

// 品牌
export function getBrand(limit = 6) {
  return req({
    url: URL.BRAND,
    params: {
      limit,
    },
  }).then((res) => res.data.result);
}

// 服饰
export function getClothes() {
  return req({
    url: URL.CLOTHES,
  }).then((res) => res.data.result);
}
